import request from "../utils/request.js";

// 薪岗通
//个人端轮播图
export function findCarouselImageListPerApp(data = {}) {
  return request({
    url: "/carousel/findCarouselImageListPerApp",
    method: "get",
    data,
  });
}
//企业端轮播图
export function findCarouselImageListCmpApp(data = {}) {
  return request({
    url: "/carousel/findCarouselImageListCmpApp",
    method: "get",
    data,
  });
}
// 个人端推荐服务列表
export function findServeIconListPerApp(data = {}) {
  return request({
    url: "/icon/findServeIconListPerApp",
    method: "get",
    data,
  });
}
// 企业端推荐服务列表
export function findServeIconListCmpApp(data = {}) {
  return request({
    url: "/icon/findServeIconListCmpApp",
    method: "get",
    data,
  });
}

// 所有的行业类型
export function findAllIndustryType(data = {}) {
  return request({
    url: "/serve/findAllIndustryType",
    method: "get",
    data,
  });
}
// 所有专业
export function allMajorList(data = {}) {
  return request({
    url: "/major/majorList",
    method: "get",
    data,
  });
}
// 行业类型树

export function findIndustryTree(data = {}) {
  return request({
    url: "/serve/findIndustryTree",
    method: "get",
    data,
  });
}
// 职位列表
export function jobberQuery(data = {}) {
  return request({
    url: `/position/jobberQuery?pageNum=${data.pageNo}&pageSize=${data.pageSize}`,
    method: "post",
    data,
  });
}
// 职位详情
export function getPositionDetail(id) {
  return request({
    url: `/position/appDetail/${id}`,
    method: "get",
  });
}
// 岗位行为添加

export function postAction(data = {}) {
  return request({
    url: `/postAction`,
    method: "post",
    data,
  });
}

// 岗位行为取消
export function postActionCancle(data = {}) {
  return request({
    url: `/postAction/cancel`,
    method: "post",
    data,
  });
}
// 更多职位
export function appCompanyPostList(data = {}) {
  return request({
    url: `/position/appCompanyPostList`,
    method: "get",
    data,
  });
}
// 期望职位
export function resumeExpect(params = {}) {
  return request({
    url: "/resumeExpect",
    method: "get",
    params,
  });
}
// 个人端服务详情
export function findServePersonalDetailApp(id) {
  return request({
    url: `/serve_personal/findServePersonalDetailApp/${id}`,
    method: "get",
  });
}
// 企业端服务详情
export function findServeDetail(id) {
  return request({
    url: `/serve/findServeDetail/${id}`,
    method: "get",
  });
}
// 互动岗位
export function positionQuery(params) {
  return request({
    url: `/position/interactivePositionQuery`,
    method: "get",
    params,
  });
}
// 企业端
export function companyQuery(data) {
  return request({
    url: `/resume/companyQuery?pageNum=${data.pageNo}&pageSize=${data.pageSize}`,
    method: "post",
    data,
  });
}
// 补贴申领——企业端
export function findUnFixServeByNameCom(data) {
  return request({
    url: `/serve/findUnFixServeByName`,
    method: "post",
    data,
  });
}
// 补贴申领——个人端
export function findUnFixServeByName(data) {
  return request({
    url: `/serve_personal/findUnFixServeByName`,
    method: "post",
    data,
  });
}
// 政策解读

export function findPolicyTreeApp(params) {
  return request({
    url: `/policy/findPolicyTreeApp`,
    method: "get",
    params,
  });
}
// 政策解读详情
export function findPolicyDetailApp(plcId) {
  return request({
    url: `/policy/findPolicyDetailApp/${plcId}`,
    method: "get",
  });
}
// 法务讲座

export function findLegalLectureListApp(data) {
  return request({
    url: `/leglec/findLegalLectureListApp`,
    method: "post",
    data,
  });
}
// 查询查询法务讲座
export function findLegalLectureApp(legLecId) {
  return request({
    url: `/leglec/findLegalLectureApp/${legLecId}`,
    method: "get",
  });
}
// 财务贴士

export function findFinancialTipListApp(data) {
  return request({
    url: `/fintip/findFinancialTipListApp`,
    method: "post",
    data,
  });
}
// 查询财务贴士
export function findFinancialTipApp(fncTipId) {
  return request({
    url: `/fintip/findFinancialTipApp/${fncTipId}`,
    method: "get",
  });
}
// 根据名称模糊查询服务列表——个人端
export function findServePersonalsByName(data) {
  return request({
    url: `/serve_personal/findServePersonalsByName`,
    method: "post",
    data,
  });
}
// 根据名称模糊查询服务列表——企业端
export function findServeList(data) {
  return request({
    url: `/serve/findServeList`,
    method: "post",
    data,
  });
}
// app发布的岗位列表
export function appMyPostList(params) {
  return request({
    url: `/position/appMyPostList`,
    method: "get",
    params,
  });
}
